#include<bits/stdc++.h>
using namespace std;
//rp++
int n;
int r[100004];
signed main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    scanf("%d",&n);
    for(int i = 0; i < n; i++){
        scanf("%d",r+i);
    }
    sort(r,r+n);
    int head = 0;
    for(int i = 1; i < n; i++){
        if(r[i] > r[head])
            head++;
    }
    printf("%d",n-head);
    return 0;
}

